package com.dailyblue.java.project.shoppingcart.feign;

import com.dailyblue.java.project.shoppingcart.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "book")
public interface BooksFeign {
    @GetMapping("/book/id/{bookId}")
    JsonResult findBookById(@PathVariable("bookId") int bookId);
}
